

package com.hazelcast.spi.partitiongroup;

import com.hazelcast.cluster.Member;

import java.util.Collection;
import java.util.Iterator;

/**
 * A collection of members to which a single partition replica can be assigned.
 */
public interface MemberGroup {

    void addMember(Member member);

    void addMembers(Collection<Member> members);

    void removeMember(Member member);

    boolean hasMember(Member member);

    Iterator<Member> iterator();

    int size();
}
